import Https from '@/utils/https'

// 概览-头部
const queryGetOverviewSummaryReq = (params) => Https.get('/api/v1/dataApiOverview/getOverviewSummary', params)

// 申请使用
const queryGetApprovalSummaryReq = (params) => Https.get('/api/v1/dataApiOverview/getApprovalSummary', params)

// 调用次数趋势统计
const queryGetReqTrendSummaryReq = (params) => Https.get('/api/v1/dataApiOverview/getReqTrendSummary', params)

// 调用用户Top
const queryGetTopUserReqSummaryReq = (params) => Https.get('/api/v1/dataApiOverview/getTopUserReqSummary', params, { needCode: true })

// 调用量Top
const queryGetTopApiReqSummaryReq = (params) => Https.get('/api/v1/dataApiOverview/getTopApiReqSummary', params, { needCode: true })

// 失败次数Top
const queryGetTopApiErrReqSummaryReq = (params) => Https.get('/api/v1/dataApiOverview/getTopApiErrReqSummary', params, { needCode: true })

// 错误类型分布统计
const queryGetErrDistributionSummaryReq = (params) => Https.get('/api/v1/dataApiOverview/getErrDistributionSummary', params)

// 判断是否显示 全局预览
const queryGetLocalUserAuthReq = (params) => Https.get('/api/v1/dataApiOverview/getLocalUserAuth', params, { needCode: true })

export {
  queryGetOverviewSummaryReq, queryGetApprovalSummaryReq, queryGetReqTrendSummaryReq, queryGetTopUserReqSummaryReq, queryGetTopApiReqSummaryReq, queryGetTopApiErrReqSummaryReq, queryGetErrDistributionSummaryReq, queryGetLocalUserAuthReq,
}
